﻿using quickfileindexer.Components;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Windows.Forms;

namespace quickfileindexer
{
    internal static class Program
    {

        [STAThread]
        static void Main()
        {
            Process[] processes = Process.GetProcesses();
            int instanceCount = 0;
            foreach (Process process in processes)
            {
                if (process.ProcessName.ToUpper() == "QFI") instanceCount++;
            }
            if (instanceCount > 1) return;
            new SearchForm().ShowDialog();
        }
    }
}
